﻿@using System.Web.Mvc
@using System.Web.Mvc.Html
@using System.Web.Optimization
@model TPM.Models.Equipo

@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="panel panel-primary">
  <div class="panel-heading">Crear equipo
      <div class="pull-right">
          <a class="link-panel" href="/Equipo">
             <img src="~/Images/boton_volver.png" />
              Volver
          </a>
          @*@Html.ActionLink("Volver", "Index")*@
      </div>
      @*@Html.ActionLink("Nuevo Equipo", "Create")*@
  </div>
  <div class="panel-body">
      @using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Equipo</legend>      
        <div class="editor-label">
            @Html.Label("Division")
            @Html.DropDownListFor(model => model.DivisionId, new SelectList(
                Model.DivisionLista,
                "DivisionId",
                "NombreDivision"))
        </div>       
        <div class="editor-label">
            @Html.Label("Liga")
            @Html.DropDownListFor(model => model.LigaId, new SelectList(
              Model.LigaLista,
              "LigaId",
              "NombreLiga"))
        </div>
        <p>
            <input class="btn btn-primary" type="submit" value="Crear" />
        </p>
    </fieldset>
}
  </div>
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
